package HomeWork;

import java.util.Arrays;
public class Test_1 {
    public static void main(String[] args) {
        int[] nums = {0,2,3};
        Arrays.sort(nums);
        for (int i = 0; i < nums.length; i++) {
            if(nums[i] != i) {
                System.out.println(i);
                break;
            }
        }
    }
}
